Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.wall.gadgets--gadget

This contribution is part of XML component org.nuxeo.ecm.wall.gadgets inside nuxeo-wall-5.8.jar

Extension Point

Extension point gadget of component service.

Contributed Items

  • <internalGadget disabled="false" name="wall">
          <documentation>
            This gadget displays a Wall for a given document
            (document created / modified, messages, ...)
    
            The following user preferences can be used to configure it:
            - nuxeoTargetContextPath: the path of the document on which to
            initialize the wall
            - activityStreamName: the activity stream to use to retrieve the
            configured list of activity verbs to get
    
            How to include the wall gadget in a JSF context:
            <code>
              <div class="gadget-wall threeQuarterWidth"/>
              <script type="text/javascript">
                jQuery('.gadget-wall').openSocialGadget({
                  baseURL: '#{baseURL}',
                  language: '#{localeSelector.language}',
                  gadgetDefs: [
                    { specUrl: '#{gadgetsBaseURL}/site/gadgets/wall/wall.xml',
                      title: '',
                      userPrefs: {
                        nuxeoTargetContextPath: {
                          value: '#{currentDocument.pathAsString}'
                        },
                        activityStreamName: {
                          value: 'defaultWallActivityStream'
                        }
                      },
                      displayTitleBar: false,
                      width: '100%'
                    }
                  ]
                });
              </script>
            </code>
    
            How to include the wall gadget in a WebEngine page:
            <code>
              <link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/>
              <script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/>
              <script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/>
    
              <div class="gadget-wall gadgets-gadget-chrome"/>
              <script type="text/javascript">
                $('.gadget-wall').openSocialGadget({
                  baseURL: '${contextPath}' + '/',
                  language: '${Context.locale.language}',
                  gadgetDefs: [{
                    specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/wall/wall.xml',
                    userPrefs: {
                      nuxeoTargetContextPath: {
                        value: '${doc.pathAsString}'
                      },
                      activityStreamName: {
                        value: 'defaultWallActivityStream'
                      }
                    },
                    displayTitleBar: false,
                    width: '100%'
                  }]
                });
              </script>
            </code>
          </documentation>
    
          <mountPoint>/wall</mountPoint>
          <entryPoint>wall.xml</entryPoint>
          <category>Nuxeo</category>
          <icon>gadget-wall.png</icon>
        </internalGadget>

    This gadget displays a Wall for a given document (document created / modified, messages, ...) The following user preferences can be used to configure it: - nuxeoTargetContextPath: the path of the document on which to initialize the wall - activityStreamName: the activity stream to use to retrieve the configured list of activity verbs to get How to include the wall gadget in a JSF context: How to include the wall gadget in a WebEngine page:

XML Source

<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service">

    <internalGadget disabled="false" name="wall">
      <documentation>
        This gadget displays a Wall for a given document
        (document created / modified, messages, ...)

        The following user preferences can be used to configure it:
        - nuxeoTargetContextPath: the path of the document on which to
        initialize the wall
        - activityStreamName: the activity stream to use to retrieve the
        configured list of activity verbs to get

        How to include the wall gadget in a JSF context:
        <code>
          <div class="gadget-wall threeQuarterWidth"/>
          <script type="text/javascript">
            jQuery('.gadget-wall').openSocialGadget({
              baseURL: '#{baseURL}',
              language: '#{localeSelector.language}',
              gadgetDefs: [
                { specUrl: '#{gadgetsBaseURL}/site/gadgets/wall/wall.xml',
                  title: '',
                  userPrefs: {
                    nuxeoTargetContextPath: {
                      value: '#{currentDocument.pathAsString}'
                    },
                    activityStreamName: {
                      value: 'defaultWallActivityStream'
                    }
                  },
                  displayTitleBar: false,
                  width: '100%'
                }
              ]
            });
          </script>
        </code>

        How to include the wall gadget in a WebEngine page:
        <code>
          <link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/>
          <script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/>
          <script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/>

          <div class="gadget-wall gadgets-gadget-chrome"/>
          <script type="text/javascript">
            $('.gadget-wall').openSocialGadget({
              baseURL: '${contextPath}' + '/',
              language: '${Context.locale.language}',
              gadgetDefs: [{
                specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/wall/wall.xml',
                userPrefs: {
                  nuxeoTargetContextPath: {
                    value: '${doc.pathAsString}'
                  },
                  activityStreamName: {
                    value: 'defaultWallActivityStream'
                  }
                },
                displayTitleBar: false,
                width: '100%'
              }]
            });
          </script>
        </code>
      </documentation>

      <mountPoint>/wall</mountPoint>
      <entryPoint>wall.xml</entryPoint>
      <category>Nuxeo</category>
      <icon>gadget-wall.png</icon>
    </internalGadget>

  </extension>